// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 查询需求待办任务 POST /task/center/cq */
export async function listAllCqTaskUsingPost(
  body: API.PageBeanTaskCenterQuery_,
  options?: { [key: string]: any },
) {
  return request<API.TradeResult>('/task/center/cq', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查询交易待办任务 POST /task/center/trade */
export async function listAllTradeTaskUsingPost(
  body: API.PageBeanTaskCenterQuery_,
  options?: { [key: string]: any },
) {
  return request<API.TradeResult>('/task/center/trade', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
